package com.corpgovernment.common.enums;


import com.ctrip.corp.obt.generic.utils.StringUtils;

/**
 * @Description:
 * @Author luojiang
 * @Date 2019/8/29
 */
public enum MonitorTypeEnums {
    /**
     *
     */
    IO("接口超时"),
    IE("接口报错"),
    BO("出票超时未处理"),
    RO("改签超时未处理"),
    SF("下单失败"),
	UC("超时未确认"),
	FO("退票超时未处理");

    private String desc;

    MonitorTypeEnums(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public static String getDescribe(String type) {
        if (StringUtils.isBlank(type)) {
            return StringUtils.EMPTY;
        }
        MonitorTypeEnums[] values = MonitorTypeEnums.values();
        for (MonitorTypeEnums value : values) {
            if (value.toString().equalsIgnoreCase(type)) {
                return value.getDesc();
            }

        }
        return StringUtils.EMPTY;
    }


}
